package com.twu.biblioteca.commands;

import com.twu.biblioteca.data_structures.Library;

import java.io.PrintStream;

public class ViewMoviesCommand implements Command {
    private Library library;
    private PrintStream ps;

    public ViewMoviesCommand(Library library, PrintStream ps){
        this.library = library;
        this.ps = ps;
    }

    public void run(){
        ps.println("Title|Year|Director|Rating");
        library.printMovies();
    }
}
